﻿@model IList<PaymentEBank>
<div class="pageHeader" style="border: 1px #B8D0D6 solid">
    <form id="pagerForm" onsubmit="return divSearch(this, 'ebank');" action="/payment/ebanks/@(ViewBag.PlatformId)"
    method="post">
    <div class="searchBar">
        <table class="searchContent" style="height: 40px;">
            <tbody>
                <tr>
                    <td>
                        名 称：<input type="text" name="name" value="@(ViewBag.Name)">
                    </td>
                    <td>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button></div>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</div>
<div class="pageContent" style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/payment/ebank/?platformId=@(ViewBag.PlatformId)" target="dialog" mask="true">
                <span>添加</span></a></li>
            <li><a class="edit" href="/payment/ebank/{param}" target="dialog" mask="true"><span>
                修改</span></a></li>
            <li><a class="delete" href="/payment/deleteebank/{param}" target="ajaxTodo" title="确定要删除吗?">
                <span>删除</span></a></li>
        </ul>
    </div>
    <table class="table" width="99%" layouth="138">
        <thead>
            <tr>
                <th width="120">
                    平台名称
                </th>
                <th width="120">
                    银行名称
                </th>
                <th width="100">
                    网关编码
                </th>
                <th width="50">
                    顺 序
                </th>
                <th>
                    描 述
                </th>
                <th width="50">
                    状 态
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var o in Model.OrderBy(x => !x.Status).ThenBy(x => x.Priority))
            {
                <tr target="param" rel="@o.Id">
                    <td>@o.PaymentPlatform.Name
                    </td>
                    <td>@o.PaymentBank.Name
                    </td>
                    <td>@o.GatewayCode
                    </td>
                    <td>@o.Priority
                    </td>
                    <td>@o.Description
                    </td>
                    <td>@(o.Status ? "可用" : "不可用")
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共@(Model.Count)条</span>
        </div>
    </div>
</div>
